package IO;

import java.io.File;

public class IODemo3 {
    public static void main(String[] args) throws InterruptedException {
        File file =new File("./test.txt");
        //删除文件
        file.deleteOnExit();
        Thread.sleep(5000);
        //System.out.println("是否删除成功：" + ret);
    }
}


